package com.gitee.simpleplus.nesty.core.server.rest.interceptor;

import com.gitee.simpleplus.nesty.commons.annotations.ExecChainMethod;
import com.gitee.simpleplus.nesty.core.server.rest.HttpContext;

import io.netty.handler.codec.http.DefaultFullHttpResponse;

public interface Interceptor {

//	@ExecChainMethod(ifTrueReturn = false)
//  public boolean install(NestyOptionProvider nesty);
    public void destroy();
    @ExecChainMethod(ifTrueReturn = false)
    public boolean filter(final HttpContext context);
    public void handler(final HttpContext context, DefaultFullHttpResponse response);
}
